package com.wcy.app.lib.crash

import android.app.Application
import com.umeng.analytics.MobclickAgent
import com.umeng.commonsdk.UMConfigure

class CrashManager {
    companion object {
        fun init(context: Application, key: String) {
            try {
                UMConfigure.init(context, key, "Umeng", UMConfigure.DEVICE_TYPE_PHONE, "")
                MobclickAgent.setCatchUncaughtExceptions(false)
                CrashHandler.getInstance().init(context)
            } catch (e: Exception) {
            }
        }
    }
}